<template>
  <view class="card">
    <view class="card-header">
      <view class="tag-1 width" v-if="status == 1"> 拉新 </view>
      <view class="tag-2 width" v-if="status == 2"> 项目 </view>
      <view class="tag-3 width" v-if="status == 3"> 网推 </view>
      <view class="tag-4 width" v-if="status == 4"> 地推 </view>
      <view class="title"> {{ title }}</view>
    </view>
    <view class="card-content">
      <u-icon name="clock" color="#aaa" size="20"></u-icon>
      <span style="margin-left: 10rpx; color: #aaa">
        <slot name="content"> </slot>
      </span>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: {
    status: {
      type: String,
      default: 1,
    },
    title: {
      type: String,
      default: () => {
        return "标题";
      },
    },
  },
};
</script>

<style lang="scss" scoped>
.card {
  width: 100%;
  height: 170rpx;
  background: #fff;
  padding: 20rpx;
  box-sizing: border-box;
  .card-header {
    display: flex;
    align-items: center;
    .width {
      width: 80rpx;
      height: 40rpx;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 26rpx;
      margin-right: 10rpx;
    }
    .tag-1 {
      color: #2b85e4;
      border: 1px solid #2b85e4;
      border-radius: 10rpx;
    }
    .tag-2 {
      color: #18b566;
      border: 1px solid #18b566;
      border-radius: 10rpx;
    }
    .tag-3 {
      color: #f29100;
      border: 1px solid #f29100;
      border-radius: 10rpx;
    }
    .tag-4 {
      color: #606266;
      border: 1px solid#606266;
      border-radius: 10rpx;
    }
  }
  .card-content {
    margin-top: 20rpx;
    display: flex;
    align-items: center;
  }
}
</style>
